# -*- coding: utf-8 -*- 
"""
========================================================================================================================
@project : my-sanic
@file: urls
@Author: mengying
@email: 652044581@qq.com
@date: 2023/3/21 14:47
@desc: 
========================================================================================================================
"""
from sanic import Blueprint
from . import static
from . import authors

# 注册蓝图
DemoBlueprint = Blueprint('demo', url_prefix='/demo')

urlpatterns = [
    DemoBlueprint.add_route(static.SyncTestView.as_view(), "/sync", name="同步处理"),
    DemoBlueprint.add_route(authors.AsyncTestView.as_view(), "/async", name="异步处理"),
    DemoBlueprint.add_route(authors.HealthView.as_view(), "/health", name="健康检查"),
]